home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 1 / Amiga Tools.iso / egs-tools / egs_dev-disk / egsdemos / egsexamples / menu / global.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-06  |  3.3 KB  |  132 lines

  1. /*
  2. ** Author: Markus van Kempen
  3. **
  4. ** Global Variablen & Structure
  5. **
  6. **
  7. ** (c) by VIONA-Development 1992/93
  8. */
  9.  
  10. /* See Window-Structure below */
  11.  
  12. #define   WIN_LEFT      100     /* left border of window*/
  13. #define   WIN_TOP       100     /* top edge of window */
  14.  
  15. #define   WIN_HEIGHT    120     /* ... */
  16. #define   WIN_WIDTH     220     /* ... */
  17.  
  18. #define   WIN_MINHEIGHT 120     /* MinHeight */
  19. #define   WIN_MINWIDTH  220     /* MinWidth  */
  20.  
  21.  
  22. /*
  23. **  Variabelen
  24. */
  25.  
  26. int             dummy;
  27. EI_MenuPtr      Menu;           /* used in main.c InitMenu.c */
  28. EG_EFontPtr     FontforMenu;
  29. struct EI_Window *Window;
  30. ER_SimpleReqPtr ErrorReq;
  31.  
  32. struct OpenStructTyp
  33. {
  34.     ULONG          *Var;
  35.     char           *Name;
  36.     ULONG           Version;
  37. };
  38.  
  39. /*
  40.  * The EGS Lib-Bases
  41.  *
  42.  */
  43.  
  44. struct Library *EGSBase;
  45. struct Library *EGSBlitBase;
  46. struct Library *EGSLayersBase;
  47. struct Library *EGSGfxBase;
  48. struct Library *EGSIntuiBase;
  49. struct Library *EGSRequestBase;
  50. struct Library *EGBBase;
  51. struct Library *EGBMenuSelectBase;
  52. struct Library *EGBRadioBase;
  53. struct Library *EGBScrollBase;
  54. struct Library *EGBSelectBase;
  55. struct Library *EGBSetBase;
  56. struct Library *EGBTextInfoBase;
  57.  
  58. /********************************************/
  59.  
  60. struct OpenStructTyp OpenStruct[] =
  61. {
  62.     {(ULONG *) & EGSBase, "egs.library", 0},
  63.     {(ULONG *) & EGSBlitBase, "egsblit.library", 0},
  64.     {(ULONG *) & EGSLayersBase, "egslayers.library", 0},
  65.     {(ULONG *) & EGSGfxBase, "egsgfx.library", 0},
  66.     {(ULONG *) & EGSIntuiBase, "egsintui.library", 0},
  67.     {(ULONG *) & EGBBase, "egsgadbox.library", 0},
  68.     {(ULONG *) & EGSRequestBase, "egsrequest.library", 0},
  69.     {(ULONG *) & EGBMenuSelectBase, "egb/gbmenuselect.library", 0},
  70.     {(ULONG *) & EGBRadioBase, "egb/gbradio.library", 0},
  71.     {(ULONG *) & EGBScrollBase, "egb/gbscrollbox.library", 0},
  72.     {(ULONG *) & EGBSelectBase, "egb/gbselect.library", 0},
  73.     {(ULONG *) & EGBSetBase, "egb/gbsets.library", 0},
  74.     {(ULONG *) & EGBTextInfoBase, "egb/gbtextinfo.library", 0},
  75.     {0L, 0L, 0L}
  76. };
  77.  
  78. struct EI_NewWindow newwin =
  79. {
  80.     WIN_LEFT,                   /* left border of window*/
  81.     WIN_TOP,                    /* top edge of window */
  82.  
  83.     WIN_WIDTH,                  /* ... */
  84.     WIN_HEIGHT,                 /* ... */
  85.  
  86.     WIN_MINWIDTH,               /* MinWidth  */
  87.     WIN_MINHEIGHT,              /* MinHeight */
  88.     800,                        /* MaxWidth  */
  89.     600,                        /* MaxHeight */
  90.     NULL,                       /* Screen    */
  91.                 /* sysGadget */
  92.  
  93.     EI_WINDOWDRAG |
  94.     EI_WINDOWCLOSE | EI_WINDOWSIZE |
  95.     EI_WINDOWFRONT | EI_WINDOWBACK,
  96.  
  97.     NULL,                       /* EI_GadgetPtr -> gadgets   */
  98.                 /* FirstGadget */
  99.     "Titel",                    /* Titel                     */
  100.  
  101.                 /* Flags  */
  102.  
  103.     EI_WINDOWACTIVE |
  104.     EI_WINDOW_MENULOCAL |
  105.     EI_FRONTBACKGADGET |
  106.     EI_WINDOWCENTER |
  107.     EI_SIMPLE_REFRESH |
  108.     EI_GIMMEZEROZERO |
  109.     EI_SIZEBRIGHT,
  110.  
  111.                 /* IDCMP -Flags */
  112.     EI_iCLOSEWINDOW |
  113.     EI_iMOVEWINDOW |
  114.     EI_iSIZEVERIFY |
  115.     EI_iNEWSIZE |
  116.     EI_iMENUPICK,
  117.  
  118.     NULL,                       /* MsgPort *p    */
  119.                 /* Windowcolors  */
  120.     {3, 1, 0, 2, 1, 3, 1},      /* WinColors     */
  121.     NULL,                       /* MenuPtr       */
  122.     NULL                        /* IntuiGfxPtr   */
  123. };
  124.  
  125. struct TextAttr FontStr =
  126. {
  127.     "times.font",               /* Name */
  128.     24,                         /* Y-Size */
  129.     0,
  130.     0
  131. };
  132.